<template>
    <button @click="msg" class="mybtn">{{ name }}你点我试试</button>
    <User v-for="item in 20"></User>
</template>

<script>
import User from './components/User.vue'
import {message,username} from './mixin.js'
export default {
  name: 'App',
  components:{
    User
  },
  mixins:[message,username]
}
</script>

<style>
#app {
  font-family: Avenir, Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-align: center;
  color: #2c3e50;
}
.mybtn{
  color: red;
}
</style>
